#include <QObject>
#include <QThread>

#include "cv.h"

class MyThread:public QThread{

    Q_OBJECT
    
    public:
        MyThread(){
            runme = false;
            pVideoFrameCopy=0;
        }

    public:
        void run();
        bool runme;
        IplImage  * pVideoFrameCopy;
    
        public slots:
        void turn_me_off();

     private:

        //// Function definitions
        int initAll();
        void exitProgram(int code);
        void captureVideoFrame();
        #ifdef unix
        void run_ffmeg(); // for linux only 
        void remove_old_images();
        #endif
        
        //will change when buttons are pressed
    signals:
        void reloadCropImage();
        void reloadFrameImage();
        void sendMesageToMaster(QString);
        void sendDialogMessage(QString);
    

};



